var App =  getApp();

Component({
  data: {},
  properties: {
    imageList: {
      type: Array,
      value: []
    }
  },
  methods: {
    imageClose: function (res) {
      let _this = this;
      let imageList = _this.data.imageList;
      imageList.splice(res.currentTarget.dataset.index, 1);
      _this.setData({ imageList: imageList})
      this.triggerEvent('imageClose',res.currentTarget.dataset.index);
    },
    localphoto: function (res) {
      this.triggerEvent('localphoto');
    },
    selectPic:function(res){
      this.triggerEvent('selectPic');
    },
    goSettle: function (res) {
      this.triggerEvent('goSettle')
    }
  }
})